#include"process.h"
#include<stdio.h>
#include<strings.h>
#include<unistd.h>

#define NUM 101
#define STYLE '#'

void Process()
{
    const char* lable = "|/-\\";
    char bar[NUM] = {'\0'};
    int cnt = 0;
    while(cnt <= 100)
    {
        printf("[%-100s][%d%%][%c]\r", bar,cnt,lable[cnt%4]);
        fflush(stdout);
        bar[cnt] = STYLE;
        cnt++;

        usleep(100000);
    }
    printf("\n");
}
